home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- P P R I N T
-
- by
-
- Norm Patriquin
-
-
-
- Version 3.1
- June 1987
-
-
-
-
- Support BBS -- Patriquin's BBS
- 714-369-9766 (DATA)
-
-
-
-
- Copyright 1987 by Norm Patriquin
-
-
-
-
-
- Table of Contents
-
-
- PPRINT - General Description. . . . . . . . . . . . . . . 1
-
- Command Parameters. . . . . . . . . . . . . . . . . . . . 2
-
- The printer definition file . . . . . . . . . . . . . . . 13
-
- Printer Definition statements . . . . . . . . . . . . . . 14
-
- Registering PPRINT. . . . . . . . . . . . . . . . . . . . 18
-
- Registration Form . . . . . . . . . . . . . . . . . . . . 19
-
- Problems and Maintenance. . . . . . . . . . . . . . . . . 20
-
- Program Maintenance Notes . . . . . . . . . . . . . . . . 21
- Page 1
-
-
- PPRINT
- ------
-
- PPRINT is a general purpose print utility that can be used with
- HP laser or other printers.
-
- PPRINT will scan a directory and select files for printing.
- Print control parameters govern the print process. A special
- print feature for the HP laserjet printer allows printing
- two pages on both halves of a side of paper. This is especially
- nice for printing large documents as it saves paper and print
- time.
- |
- PPRINT is special and unique because it is customisable to |
- any printer type. It also allows you to access printer |
- features not normally availaable for printing normal text files. |
- |
- I know there are too many command parameters for each user to |
- learn but then there are that number of printer features and |
- possibilities. I have designed PPRINT to provide one print |
- utility that will accomplish most all print tasks for all |
- users. An installation can standardize one one print utility |
- even though it has users with many different kinds of |
- printers. |
- |
- Just type the PPRINT command without parameters to get help |
- about command parameters available. Once you learn the |
- parameters you use most often, set up DOS batch files to |
- make printing easier. |
- |
- I would greatly appreciate having copies of printer definition |
- files you set up for printers I do not yet support. I will |
- give you full credit for developing it and will provide anyone |
- free registration of PPRINT in exchange for the PPRINT.DEF file. |
- |
- If you have questions, problems, ideas, or requests, please |
- don't hesitate to contact me through my online support BBS. |
- You are allowed immediate access the first call. The number |
- is 714-369-9766. |
- Page 2
-
-
- Command Parameters
- ------------------
-
- PPRINT allows many command parameter switches to be specified |
- to customize the process. All these parameters are optional.
- The command format and switch parameters are described below. A
- quick review of command parameters is always available by
- entering the PPRINT command with no parameters.
-
- COMMAND FORMAT:
-
- PPRINT filespec [ (/ switches) ]
-
-
- filespec Enter a DOS file specification. Pathnames and
- standard DOS wildcard characters are allowed.
- |
- |
- /AP Set printer to print using PI FONT A character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /B:filename When a wildcard name is supplied to indicate |
- multiple files are to be printed, this parameter |
- indicates to skip all files until this filename |
- is found. |
-
-
- /BM:nn Number of lines of bottom margin
-
-
- /C Sends 015 code to printer to force compressed print.
- Use on dot matrix printers only.
- |
- |
- /CO:nn Specify the number of copies of each file to be |
- printed. |
- |
- |
- /DB Set printer to print using its Double Strike mode. |
- (See also Printer Definition file) |
-
-
- /DS Double space printed output
- Page 3
-
-
- /D:[(]xxx Date. Select files based on the relationship between
- [)] their last update date and the date specified. This
- [=] parameter includes a date or number of days value.
- It may also contain a modifier that reverses or
- modifies the use of the date specified.
-
- When xxx contains a date the date is compared to the
- last update date of the file. The last update date
- of the file is the date contained in its directory
- entry. The file is selected if the condition specified
- by the condition modifier is met. The condition
- modifier meanings are:
-
- '(' = Select files whose date is older than the
- date specified.
-
- ')' = Select files whose date is newer than the
- date specified.
-
- '=' = Select files whose date is equal to the date
- specified.
-
- If the condition modifier is not specified, ')' is
- assumed.
-
- Date values may be specified in any of the following
- formats:
-
- MM/DD/YY MM-DD-YY DDMMMYY
- 12/31/80 12-31-80 31DEC80
-
- If xxx contains a numeric value, that positive number
- is used to calculate a date value a number of days
- prior to the current date. Then that date is used
- as in the calculation above.
-
- Example:
-
- /D:(1JAN86 - Process files updated before 1JAN86
- /D:)1JAN86 - Process files updated after 1JAN86
- /D:=1JAN86 - Process files updated 1JAN86
- /D:(5 - Process files modified prior to 5 days ago
- /D:)5 - Process files modified within the last 5 days
- /D:=5 - Process files modified 5 days ago
- Page 4
-
-
- /E Sends <ESC> 69 code to printer to force emphasized print.
- Use on dot matrix printers only.
-
-
- /EX Attempt to print the header and footer lines using
- dot matrix expanded print options. If there is not
- enough room on the line this option will be ignored.
-
-
- /F Print page footings at the bottom of each page. This
- makes thumbing through listings to find a specific
- file much easier.
- |
- |
- /FC Set printer to print using Courier type face. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /FE Set printer to print using Prestiege Elite type face. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /FG Set printer to print using Gothic Elite type face. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /FH Set printer to print using Helvitca type face. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /FL Set printer to print using Line Printer type face. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
-
-
- /FP Print Footer line that contains Page number only.
- |
- |
- /FT Set printer to print using Times Roman type face. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- Page 5
-
-
- /G For printing C language source files. This option
- prints ruler lines to help follow IF and DO sets
- of lines down and across pages.
-
-
- /HD Print Header line that contains filename, date file
- was last updated, and page number.
-
-
- /HP Print Header line that contains Page number only.
-
-
- /HT PPRINT will prompt you for heading information to ||
- be placed in heading and footing lines. ||
-
-
- /HT:ccc Specify heading information to be placed in heading ||
- and footing lines. Since DOS does not allow spaces ||
- in command lines, enter an underline character '_' ||
- wherever you want a space printed. PPRINT will ||
- substitute a space in those positions. ||
- ||
- I.E. PPRINT *.BAT/ht:Disk_Batch_Files ||
- |
- |
- /IT Use printers Italics print mode. |
- (See also Printer Definition file) |
- |
- |
- /JU Use printer's Auto Justification Mode |
- (See also Printer Definition file) |
- |
- |
- /LA Set printer's Landscape print Mode |
- (See also Printer Definition file) |
- |
- |
- /LC Compress all sets of spaces to one space in each |
- print line. |
- |
- |
- /LD Set printer to print using LINEDRAW character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- Page 6
-
-
- /LE Set printer to print using LEGAL character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /LJ Left Justify each line to be printed. |
-
-
- /LL:nn Number of characters to be allowed for each print
- line. Longer lines will be truncated.
-
-
- /LM:nn Number of characters for the left margin.
- |
- |
- /LO:nn Ignore the first n characters and start printing |
- with the nnth character in each print line. (Offset) |
-
-
- /LP:nn Lines per page. 66 lines assumed. (11 inch * 6 lpi)
- |
- |
- /LQ When the printer has letter quality mode, this parm |
- activates it. |
- (See also Printer Definition file) |
- |
- |
- /ML:nn Indicate the maximum number of lines to be printed. |
- |
- |
- /MP:nn Indicate the maximum number of pages to be printed. |
- |
- |
- /N Print a line number before each line printed. Useful
- for printing program source listings.
- |
- |
- /NC Ignore print control characters found in input lines. |
- You may also want to specify /NE. |
- |
- |
- /ND PPRINT will search for duplicate input lines and |
- ignore them. This feature can be used to take any |
- sorted text file and remove duplicate lines. |
- Page 7
-
-
- /NE Do not eject the paper by inserting Form Feed |
- characters. |
- |
- SPECIAL FEATURE: You can use this parameter to |
- change a input file to upper case, lower case or |
- for any of the other data manipulation features |
- of PPRINT. This causes PPRINT to pass the file |
- through without added print control. |
- |
- The following example reads file X.TXT and creates |
- file Y.TXT and converts it to upper case and |
- removes duplicate lines. |
- |
- PPRINT X.TXT/PD:Y.TXT/PU/ND/NE |
- |
- The next example takes the first 500 lines of file |
- X.TXT and creates file Y.TXT. |
- |
- PPRINT X.TXT/PD:Y.TXT/NE/ML:500 |
- |
- |
- /NF Ignore Form Feed characters found in input files. |
- Normally when PPRINT finds a form feed it honors |
- it and skips to the top of the next page. With |
- /NF specified, the form feed is removed from the |
- input and ignored. |
- Page 8
-
-
- /PA Pause before each page is printed. Use on single |
- sheet printers to allow each new page to be placed |
- in the printer. |
-
-
- /PD:xxxx Alternate print device name. /PD:LPT2 will cause
- all output to be directed to printer 2. LPT1 is
- assumed. This can also be the name of a DOS file.
- |
- |
- /PI Set printer to print using PI FONT character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /PL Convert all print lines to lower case. |
- |
- |
- Page 9
-
-
- /PU Convert all print lines to upper case. |
- |
- |
- /PR Use printer's Proportional print mode. |
- (See also Printer Definition file) |
- |
- |
- /PS Print file over page perforation. Also consider |
- /NE. |
- (See also Printer Definition file) |
- |
- |
- /P5 Set printer to print using 8.5 point type |
- /P7 Set printer to print using 7 point type |
- /P8 Set printer to print using 8 point type |
- /P10 Set printer to print using 10 point type |
- /P12 Set printer to print using 12 point type |
- /P14 Set printer to print using 14 point type |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- /R Print a ruler at the top of each page of output. |
- |
- |
- /RE When you register PPRINT, you will be sent a |
- registration code and serial number. Use this |
- option to activate registration processing. |
- |
- |
- /RO Set printer to print using ROMAN character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
- |
- Page 10
-
-
- /RX Set printer to print using ROMANX character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
-
-
- /S laSer printer. 2-up side by side page printing
- in compressed format. Requires lanscape font.
- |
- |
- /SC Use printers Script print mode. |
- (See also Printer Definition file) |
-
-
- /SL:nnn Start or restart printing with the nnth line of |
- the file. Previous lines will be skipped. |
- |
- |
- /SP:nnn Start or restart printing with page number nnn.
- Previous pages will be skipped.
- |
- |
- /S6 Use printer's 6 line per inch mode. |
- (See also Printer Definition file) |
- |
- |
- /S8 Use printer's 8 line per inch mode. |
- (See also Printer Definition file) |
-
-
- /T Test the command. Use this switch when you
- would like to test the command entered without
- actually printing any files.
-
- Messages will indicate what will happen if the command
- is executed without the /T switch.
- |
- |
- /TB:xxx Specify text to be located in the input file. When |
- the text is found, the following data will be printed. |
- |
- PPRINT XXX.TXT/TB:start here |
- |
- |
- /TL:5 Indicate the length of each tab character. Default is |
- 8 characters. |
- |
- |
- Page 11
-
-
- /TM:nnn Number of top margin lines.
-
-
- /TP:xxx Specify text to be located in the input file. When |
- the text is found, the remaining data will be ignored. |
- |
- PPRINT XXX.TXT/TB:stop here |
-
-
- /TR Truncate print lines that exceed the max line length
- |
- |
- /TS:xxx Specify text to be located in the input file. Only |
- lines containing the text will be printed. Following |
- example indicates to print all lines with 714 telephone |
- area code. |
- |
- PPRINT XXX.TXT/TS:714 |
- |
- |
- /TX:xxx Specify text to be located in the input file. |
- lines containing the text will be excluded. |
- |
- |
- /US Set printer to print using USASCII character set. |
- For laser and other compatible printers. |
- (See also Printer Definition file) |
- |
-
- /V Print program version and registration information.
- |
- |
- /XP Print using a dot matrix printers expanded print mode. |
- (See also Printer Definition file) |
- |
- |
- /12 Print using printers 12 characters per inch mode. |
- (See also Printer Definition file) |
- |
- |
- Page 12
-
-
- /2C Use the second character set already loaded into the |
- printer. This activates an option unique to some |
- printers.
- (See also Printer Definition file) |
-
- /2E Print only even numbered pages. For 2 sided printing
-
-
- /2D Print odd numbered pages. For 2 sided printing.
- Page 13
-
-
- The printer Definition file
- ---------------------------
- |
- When started, PPRINT always reads \PPRINT.DEF from the root ||
- directory of the current disk drive or from the directory ||
- where PPRINT.EXER is located. This printer definition file ||
- contains control codes to activate the different features ||
- of your printer. ||
-
- The printer definition file is a standard text file that may |
- be edited by most any word processor or editor. You may also |
- use the DOS EDLIN command. If you are lucky, I may have |
- already provided one for your printer and all you need to do |
- is copy it to your disk. |
- |
- Use the DOS type command to type file PRINTDEF.DOC to see if |
- your printer is included. |
- |
- If your printer is not included you can call my BBS and see |
- if some generous person has made and uploaded one for your |
- printer. (data: 714-369-9766). If you still are unable to |
- find one, you still may have an easy job of defining one. |
- |
- Copy the existing printer definition file for the printer that |
- resembles your printer closest. Then edit that file for your |
- printers characteristics. Here is how. |
-
- |
- Page 14
-
-
- PRINTER DEFINITION STATEMENTS |
- ----------------------------- |
- |
- Each statement begins with a word identifier and may be |
- followed by codes to be sent to the printer when the related |
- feature is activated. All codes are specified as decimal |
- numbers. You m may include comments anywhere in the file by |
- starting the line with an * character. |
- |
- Specification of these keywords and codes accomplishes |
- two things. First, it defines the capabilities of PPRINT |
- for your environment. If a code is not specified, PPRINT |
- will not allow you to specify a command parameter to |
- activate the feature. The command parameter will also be |
- missing from the help display. |
- |
- The second thing accomplished by specifying the keywords |
- is to give PPRINT the appropriate codes to send to your |
- printer when it is asked to use a specific printer feature. |
- |
- |
- Identifier Descrption |
- --------------- ------------------------------------------- |
- LASER Include to indicate the printer being |
- defined is a LASER printer. |
- |
- LETTER Include to indicate the printer being |
- defined is a Daisy Wheel type letter |
- quality printer. |
- |
- DOT Include to indicate the printer being |
- defined is a Dot Matrix Printer. |
- |
- INIT Define up to 15 code characters to be |
- sent to the printer each time PPRINT is |
- started. For customized printer |
- initialization. |
- Example: INIT 12 27 56 |
- |
- FFEED Define the code for a form feed character. |
- This is usually 12. |
- Example: FFEED 12 |
- |
- COMPON Codes to set compressed printing on. |
- Example: FFEED 12 |
- |
- Page 15
-
-
- COMPOFF Code to be sent to printer to set |
- compressed mode off once it has been set |
- on. |
- |
- 8LPI Code to set printer in 8 lines per inch mode. |
- 6LPI Code to set printer in 8 lines per inch mode. |
- |
- ITALIC Code for Italics mode |
- ITALICOFF Code for Italics mode off |
- |
- EMPH Code for printers Emhphasized mode |
- EMPHOFF Code to set printers Emhphasized mode off |
- |
- DOUBLE Double strike mode codes |
- DOUBLEOFF Code Double strike mode off |
- |
- SCRIPT Scrpit print mode |
- SCRIPTOFF Scrpit print mode off |
- |
- EXPAND Expanded print mode |
- EXPANDOFF Expanded print mode off |
- |
- RESET Master reset code for printer |
- |
- MICSPACE code to set printer microspacing |
- MICSPACEOFF Reset printer microspacing |
- |
- FORMLENL Used each time PPRINT is started to |
- set printers form length in number of |
- lines per page. |
- |
- FORMLENI Used each time PPRINT is started to |
- set printers form length in number of |
- inches per page. Use either FORMLENL |
- or FORMLENI or none to use standard form. |
- |
- NLQ Code to set Near Letter Quality mode |
- NLQOFF Code to set Near Letter Quality mode off |
- |
- DLFONT Code to use downloadable font |
- DLFONTOFF Code to use normal font |
- |
- PERFSKIP Code to skip over perforation |
- PERFSKIPOFF Code to reset skip over perforation |
- |
- Page 16
-
-
- ONEDIR Code to set one directional printing |
- ONEDIROFF Code to reset one directional printing |
- |
- CHARSET Code to use printers 2nd char set |
- CHARSETOFF Code to use printers normal char set |
- |
- 12CPI Set printers 12 char per inch printing |
- 12CPIOFF Reset printers 12 char per inch printing |
- |
- TOPMARGIN Set number of lines to always allow for |
- top margin of printer. |
- |
- BOTMARGIN Set number of lines to always allow for |
- top margin of printer. |
- |
- LINELEN Specify the line length PPRINT is to |
- assume for the printer. |
- |
- LINESPAGE Specify number of print lines to print |
- per page. |
- |
- PROPORTIONAL Code to set proportional print mode on |
- PROPORTIONALOFF Code to set proportional print mode off |
- |
- AUTOJUST Code to set printers auto justification |
- mode. |
- |
- AUTOJUSTOFF Code to set printers auto justification |
- mode off. |
- |
- PORTRAIT Code to set printers portrait print mode. |
- |
- LANDSCAPE Code to set printers landscape mode |
- |
- FONTNORMAL Code to use when normal print font is to |
- be used. |
- |
- ROMAN8 Code to select ROMAN 8 font |
- |
- USASCII Code to select USASCII font |
- |
- ROMANX Code to select ROMAN X font |
- |
- LEGAL Code to select Legal font |
- |
- Page 17
-
-
- LINEDRAW Code to select Linedraw font |
- |
- PIFONT Code to select PIFONT font |
- |
- PIFONTA Code to select PIFONT font A |
- |
- NORMALPOINT Code to select printers normal point |
- size. |
- |
- POINT7 7 point size |
- |
- POINT8 8 point size |
- |
- POINT85 8.5 point size |
- |
- POINT10 10 point size |
- |
- POINT12 12 point size |
- |
- POINT14 14 point size |
- |
- FACENORMAL Code to select normal type face to be |
- used. |
- |
- COURIER Code to set courier type face |
- |
- LINEPRINTER Code to set Lineprinter type face |
- |
- HELV Code to set Helvitca type face |
- |
- TIMESROMAN Code to set Timesroman type face |
- |
- PRESTIGEELITE Code to set Prestige Elite type face |
- |
- GOTHIC Code to set Gothic type face |
-
- Page 18
-
-
- Registering PPRINT
- -------------------
-
- PPRINT is distributed under the Shareware concept. This makes it
- available for anyone to try without obligation. If you decide it
- is useful and want to keep it, I ask that you register your use
- of it. This will allow for continued support and maintenance of
- the program and will help to encourage that more quality software
- be made available through this channel. We require all
- corporate and government users of this utility register their
- copies.
-
- To simply register the program, $15 is requested. If you would
- like the newest program disk and a copy of the manual send
- $30. If you would like to register all the Patriquin utilities,
- and receive programs on disk and manuals, send $45.
-
-
- Send registration requests to:
-
- Norm Patriquin
- P.O. Box 8308
- San Bernardino, CA 92412
-
-
- The registration charge is a one time fee that entitles you to
- all future versions of the product. These may either be obtained
- from normal Shareware sources or directly from me. Any
- organization ordering more than 100 copies is also entitled to
- telephone support and will be given the technical support number.
-
- Following is a form that may be used to register PPRINT.
-
- Page 19
-
- PPRINT Registration
- Version 3.0
-
-
- Please Register PPRINT to the following person. We will use ____
- copies of the program and have enclosed $____ for each copy to
- be used.
-
- **************************************************************
-
- _____ Registration only.............................. $15.00
-
- _____ Registration, program disk and manual.......... $30.00
-
- _____ Registration of all Patriquin Utilities with
- program disks and manuals................... $45.00
-
- _____ Update of newest Patriquin Utility disk with
- manual. ................................... $15.00
-
- **************************************************************
-
-
- Name: __________________________________________________
-
- Company: _______________________________________________
-
- Address: _______________________________________________
-
- _______________________________________________
-
- City: ______________________________ State: ___________
-
- Zip: ______________________
-
- I obtained my copy of PPRINT from: ____________________________
-
- If BBS indicate name and number please._________________________
-
- ________________________________________________________________
-
- Please register the software under the following name:
-
- ____________________________________________________
-
- Send to:
- Norm Patriquin
- P.O. Box 8308
- San Bernardino, CA 92412
- Page 20
- P P R I N T
-
- Problems and Maintenance
- ------------------------
-
- I welcome all comments or enhancement suggestions. Please
- document each item clearly and provide printed examples if
- possible. Please be sure to include this form with all requests,
- it will help to make sure we can provide you with the best
- possible service.
-
-
- Name: __________________________________________________________
-
- Company: _______________________________________________________
-
- Address: _______________________________________________________
-
- _______________________________________________________
-
- City: __________________________________ State: _______________
-
- Zip: ______________________________
-
- Telephone: _______ / ________________________ (Home / Work)
-
-
- Date: _________________________
-
- Description of problem or enhancement:
-
- ________________________________________________________________
-
- ________________________________________________________________
-
- ________________________________________________________________
-
- ________________________________________________________________
-
-
- Suggested solution:
-
- ________________________________________________________________
-
- ________________________________________________________________
- Page 21
- P P R I N T
-
- Program Maintenance:
- --------------------
-
- Version 1.0 October 15, 1986
-
- Version 2.0 March 6, 1987
-
- Many corrections were made to release 2. It appears OK now.
- Here is a short list.
-
- -- /LM (left margin) option corrected. Was not working.
- -- /LL (line length) option now works with headers.
- -- Lines with more than 80 characters of data now work
- -- /HD, /HP options added. It is no longer the default to
- print headers. Use /HD and /HP to print headers.
- -- /EX (expanded headings/footings) if headings or footings
- are desired in dot matrix expanded format, specify this
- parameter.
- -- Page ejected if printing terminated with escape
-
-
- Version 3.0 May 25, 1987
-
- I do not know where to start in describing the changes to
- this release. PPRINT has been totally enhanced. It includes
- a mass of new command line parameters to select all kinds of
- print options and also now has a printer definition file to
- allow users to define the attributes of their own printers.
- Extensive support has been added to support printing files
- on laser printers.
-
- Look for the vericle bar at the right side of the document.
- It indicates this feature has been added with release 3.0.
- Page 22
-
-
- Version 3.1 June 7, 1987
-
- -- PPRINT was unable to print a file from a disk drive
- other than the current drive. This was usually ok for
- hard disk users but created problems for floppy users.
-
- -- The PPRINT.DEF file no longer needs to be placed in the
- root directory. It can now be placed in the same
- directory where PPRINT.EXE is found
-
- -- /HT added to allow user to be prompted to enter their
- own print heading information on the PPRINT command
- line.
-
- -- Help screens showed options not available for all
- printers.
-
- -- Generic PPRINT.DEF file added so PPRINT could be used
- on all printers.
-
- -- Automatic generation of headings and other options for
- specific file types was disabled. This seemed to get
- in users way.
-
- -- Documentation and feature changes are noted by a double
- bar (||) on the right side of each printed page.
-
-
-
-